
main:     file format elf64-x86-64


Disassembly of section .init:

0000000000400580 <_init>:
  400580:	48 83 ec 08          	sub    $0x8,%rsp
  400584:	48 8b 05 6d 0a 20 00 	mov    0x200a6d(%rip),%rax        # 600ff8 <__gmon_start__>
  40058b:	48 85 c0             	test   %rax,%rax
  40058e:	74 05                	je     400595 <_init+0x15>
  400590:	e8 7b 00 00 00       	callq  400610 <.plt.got>
  400595:	48 83 c4 08          	add    $0x8,%rsp
  400599:	c3                   	retq   

Disassembly of section .plt:

00000000004005a0 <.plt>:
  4005a0:	ff 35 62 0a 20 00    	pushq  0x200a62(%rip)        # 601008 <_GLOBAL_OFFSET_TABLE_+0x8>
  4005a6:	ff 25 64 0a 20 00    	jmpq   *0x200a64(%rip)        # 601010 <_GLOBAL_OFFSET_TABLE_+0x10>
  4005ac:	0f 1f 40 00          	nopl   0x0(%rax)

00000000004005b0 <my_strlen@plt>:
  4005b0:	ff 25 62 0a 20 00    	jmpq   *0x200a62(%rip)        # 601018 <my_strlen>
  4005b6:	68 00 00 00 00       	pushq  $0x0
  4005bb:	e9 e0 ff ff ff       	jmpq   4005a0 <.plt>

00000000004005c0 <mfopen@plt>:
  4005c0:	ff 25 5a 0a 20 00    	jmpq   *0x200a5a(%rip)        # 601020 <mfopen>
  4005c6:	68 01 00 00 00       	pushq  $0x1
  4005cb:	e9 d0 ff ff ff       	jmpq   4005a0 <.plt>

00000000004005d0 <mfwrite@plt>:
  4005d0:	ff 25 52 0a 20 00    	jmpq   *0x200a52(%rip)        # 601028 <mfwrite>
  4005d6:	68 02 00 00 00       	pushq  $0x2
  4005db:	e9 c0 ff ff ff       	jmpq   4005a0 <.plt>

00000000004005e0 <printf@plt>:
  4005e0:	ff 25 4a 0a 20 00    	jmpq   *0x200a4a(%rip)        # 601030 <printf@GLIBC_2.2.5>
  4005e6:	68 03 00 00 00       	pushq  $0x3
  4005eb:	e9 b0 ff ff ff       	jmpq   4005a0 <.plt>

00000000004005f0 <__libc_start_main@plt>:
  4005f0:	ff 25 42 0a 20 00    	jmpq   *0x200a42(%rip)        # 601038 <__libc_start_main@GLIBC_2.2.5>
  4005f6:	68 04 00 00 00       	pushq  $0x4
  4005fb:	e9 a0 ff ff ff       	jmpq   4005a0 <.plt>

0000000000400600 <mfclose@plt>:
  400600:	ff 25 3a 0a 20 00    	jmpq   *0x200a3a(%rip)        # 601040 <mfclose>
  400606:	68 05 00 00 00       	pushq  $0x5
  40060b:	e9 90 ff ff ff       	jmpq   4005a0 <.plt>

Disassembly of section .plt.got:

0000000000400610 <.plt.got>:
  400610:	ff 25 e2 09 20 00    	jmpq   *0x2009e2(%rip)        # 600ff8 <__gmon_start__>
  400616:	66 90                	xchg   %ax,%ax

Disassembly of section .text:

0000000000400620 <_start>:
  400620:	31 ed                	xor    %ebp,%ebp
  400622:	49 89 d1             	mov    %rdx,%r9
  400625:	5e                   	pop    %rsi
  400626:	48 89 e2             	mov    %rsp,%rdx
  400629:	48 83 e4 f0          	and    $0xfffffffffffffff0,%rsp
  40062d:	50                   	push   %rax
  40062e:	54                   	push   %rsp
  40062f:	49 c7 c0 70 08 40 00 	mov    $0x400870,%r8
  400636:	48 c7 c1 00 08 40 00 	mov    $0x400800,%rcx
  40063d:	48 c7 c7 0d 07 40 00 	mov    $0x40070d,%rdi
  400644:	e8 a7 ff ff ff       	callq  4005f0 <__libc_start_main@plt>
  400649:	f4                   	hlt    
  40064a:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)

0000000000400650 <deregister_tm_clones>:
  400650:	b8 57 10 60 00       	mov    $0x601057,%eax
  400655:	55                   	push   %rbp
  400656:	48 2d 50 10 60 00    	sub    $0x601050,%rax
  40065c:	48 83 f8 0e          	cmp    $0xe,%rax
  400660:	48 89 e5             	mov    %rsp,%rbp
  400663:	77 02                	ja     400667 <deregister_tm_clones+0x17>
  400665:	5d                   	pop    %rbp
  400666:	c3                   	retq   
  400667:	b8 00 00 00 00       	mov    $0x0,%eax
  40066c:	48 85 c0             	test   %rax,%rax
  40066f:	74 f4                	je     400665 <deregister_tm_clones+0x15>
  400671:	5d                   	pop    %rbp
  400672:	bf 50 10 60 00       	mov    $0x601050,%edi
  400677:	ff e0                	jmpq   *%rax
  400679:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)

0000000000400680 <register_tm_clones>:
  400680:	b8 50 10 60 00       	mov    $0x601050,%eax
  400685:	55                   	push   %rbp
  400686:	48 2d 50 10 60 00    	sub    $0x601050,%rax
  40068c:	48 c1 f8 03          	sar    $0x3,%rax
  400690:	48 89 e5             	mov    %rsp,%rbp
  400693:	48 89 c2             	mov    %rax,%rdx
  400696:	48 c1 ea 3f          	shr    $0x3f,%rdx
  40069a:	48 01 d0             	add    %rdx,%rax
  40069d:	48 d1 f8             	sar    %rax
  4006a0:	75 02                	jne    4006a4 <register_tm_clones+0x24>
  4006a2:	5d                   	pop    %rbp
  4006a3:	c3                   	retq   
  4006a4:	ba 00 00 00 00       	mov    $0x0,%edx
  4006a9:	48 85 d2             	test   %rdx,%rdx
  4006ac:	74 f4                	je     4006a2 <register_tm_clones+0x22>
  4006ae:	5d                   	pop    %rbp
  4006af:	48 89 c6             	mov    %rax,%rsi
  4006b2:	bf 50 10 60 00       	mov    $0x601050,%edi
  4006b7:	ff e2                	jmpq   *%rdx
  4006b9:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)

00000000004006c0 <__do_global_dtors_aux>:
  4006c0:	80 3d 85 09 20 00 00 	cmpb   $0x0,0x200985(%rip)        # 60104c <_edata>
  4006c7:	75 11                	jne    4006da <__do_global_dtors_aux+0x1a>
  4006c9:	55                   	push   %rbp
  4006ca:	48 89 e5             	mov    %rsp,%rbp
  4006cd:	e8 7e ff ff ff       	callq  400650 <deregister_tm_clones>
  4006d2:	5d                   	pop    %rbp
  4006d3:	c6 05 72 09 20 00 01 	movb   $0x1,0x200972(%rip)        # 60104c <_edata>
  4006da:	f3 c3                	repz retq 
  4006dc:	0f 1f 40 00          	nopl   0x0(%rax)

00000000004006e0 <frame_dummy>:
  4006e0:	48 83 3d 28 07 20 00 	cmpq   $0x0,0x200728(%rip)        # 600e10 <__JCR_END__>
  4006e7:	00 
  4006e8:	74 1e                	je     400708 <frame_dummy+0x28>
  4006ea:	b8 00 00 00 00       	mov    $0x0,%eax
  4006ef:	48 85 c0             	test   %rax,%rax
  4006f2:	74 14                	je     400708 <frame_dummy+0x28>
  4006f4:	55                   	push   %rbp
  4006f5:	bf 10 0e 60 00       	mov    $0x600e10,%edi
  4006fa:	48 89 e5             	mov    %rsp,%rbp
  4006fd:	ff d0                	callq  *%rax
  4006ff:	5d                   	pop    %rbp
  400700:	e9 7b ff ff ff       	jmpq   400680 <register_tm_clones>
  400705:	0f 1f 00             	nopl   (%rax)
  400708:	e9 73 ff ff ff       	jmpq   400680 <register_tm_clones>

000000000040070d <main>:
  40070d:	55                   	push   %rbp
  40070e:	48 89 e5             	mov    %rsp,%rbp
  400711:	48 83 ec 10          	sub    $0x10,%rsp
  400715:	48 c7 45 f8 90 08 40 	movq   $0x400890,-0x8(%rbp)
  40071c:	00 
  40071d:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  400721:	48 89 c7             	mov    %rax,%rdi
  400724:	e8 87 fe ff ff       	callq  4005b0 <my_strlen@plt>
  400729:	89 c2                	mov    %eax,%edx
  40072b:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  40072f:	48 89 c6             	mov    %rax,%rsi
  400732:	bf 94 08 40 00       	mov    $0x400894,%edi
  400737:	b8 00 00 00 00       	mov    $0x0,%eax
  40073c:	e8 9f fe ff ff       	callq  4005e0 <printf@plt>
  400741:	be 9c 08 40 00       	mov    $0x40089c,%esi
  400746:	bf 9e 08 40 00       	mov    $0x40089e,%edi
  40074b:	e8 70 fe ff ff       	callq  4005c0 <mfopen@plt>
  400750:	48 89 45 f0          	mov    %rax,-0x10(%rbp)
  400754:	48 83 7d f0 00       	cmpq   $0x0,-0x10(%rbp)
  400759:	75 0a                	jne    400765 <main+0x58>
  40075b:	b8 01 00 00 00       	mov    $0x1,%eax
  400760:	e9 91 00 00 00       	jmpq   4007f6 <main+0xe9>
  400765:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  400769:	48 89 c7             	mov    %rax,%rdi
  40076c:	e8 3f fe ff ff       	callq  4005b0 <my_strlen@plt>
  400771:	89 c1                	mov    %eax,%ecx
  400773:	48 8b 55 f0          	mov    -0x10(%rbp),%rdx
  400777:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  40077b:	89 ce                	mov    %ecx,%esi
  40077d:	48 89 c7             	mov    %rax,%rdi
  400780:	e8 4b fe ff ff       	callq  4005d0 <mfwrite@plt>
  400785:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  400789:	48 89 c7             	mov    %rax,%rdi
  40078c:	e8 1f fe ff ff       	callq  4005b0 <my_strlen@plt>
  400791:	89 c1                	mov    %eax,%ecx
  400793:	48 8b 55 f0          	mov    -0x10(%rbp),%rdx
  400797:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  40079b:	89 ce                	mov    %ecx,%esi
  40079d:	48 89 c7             	mov    %rax,%rdi
  4007a0:	e8 2b fe ff ff       	callq  4005d0 <mfwrite@plt>
  4007a5:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  4007a9:	48 89 c7             	mov    %rax,%rdi
  4007ac:	e8 ff fd ff ff       	callq  4005b0 <my_strlen@plt>
  4007b1:	89 c1                	mov    %eax,%ecx
  4007b3:	48 8b 55 f0          	mov    -0x10(%rbp),%rdx
  4007b7:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  4007bb:	89 ce                	mov    %ecx,%esi
  4007bd:	48 89 c7             	mov    %rax,%rdi
  4007c0:	e8 0b fe ff ff       	callq  4005d0 <mfwrite@plt>
  4007c5:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  4007c9:	48 89 c7             	mov    %rax,%rdi
  4007cc:	e8 df fd ff ff       	callq  4005b0 <my_strlen@plt>
  4007d1:	89 c1                	mov    %eax,%ecx
  4007d3:	48 8b 55 f0          	mov    -0x10(%rbp),%rdx
  4007d7:	48 8b 45 f8          	mov    -0x8(%rbp),%rax
  4007db:	89 ce                	mov    %ecx,%esi
  4007dd:	48 89 c7             	mov    %rax,%rdi
  4007e0:	e8 eb fd ff ff       	callq  4005d0 <mfwrite@plt>
  4007e5:	48 8b 45 f0          	mov    -0x10(%rbp),%rax
  4007e9:	48 89 c7             	mov    %rax,%rdi
  4007ec:	e8 0f fe ff ff       	callq  400600 <mfclose@plt>
  4007f1:	b8 00 00 00 00       	mov    $0x0,%eax
  4007f6:	c9                   	leaveq 
  4007f7:	c3                   	retq   
  4007f8:	0f 1f 84 00 00 00 00 	nopl   0x0(%rax,%rax,1)
  4007ff:	00 

0000000000400800 <__libc_csu_init>:
  400800:	41 57                	push   %r15
  400802:	41 89 ff             	mov    %edi,%r15d
  400805:	41 56                	push   %r14
  400807:	49 89 f6             	mov    %rsi,%r14
  40080a:	41 55                	push   %r13
  40080c:	49 89 d5             	mov    %rdx,%r13
  40080f:	41 54                	push   %r12
  400811:	4c 8d 25 e8 05 20 00 	lea    0x2005e8(%rip),%r12        # 600e00 <__frame_dummy_init_array_entry>
  400818:	55                   	push   %rbp
  400819:	48 8d 2d e8 05 20 00 	lea    0x2005e8(%rip),%rbp        # 600e08 <__init_array_end>
  400820:	53                   	push   %rbx
  400821:	4c 29 e5             	sub    %r12,%rbp
  400824:	31 db                	xor    %ebx,%ebx
  400826:	48 c1 fd 03          	sar    $0x3,%rbp
  40082a:	48 83 ec 08          	sub    $0x8,%rsp
  40082e:	e8 4d fd ff ff       	callq  400580 <_init>
  400833:	48 85 ed             	test   %rbp,%rbp
  400836:	74 1e                	je     400856 <__libc_csu_init+0x56>
  400838:	0f 1f 84 00 00 00 00 	nopl   0x0(%rax,%rax,1)
  40083f:	00 
  400840:	4c 89 ea             	mov    %r13,%rdx
  400843:	4c 89 f6             	mov    %r14,%rsi
  400846:	44 89 ff             	mov    %r15d,%edi
  400849:	41 ff 14 dc          	callq  *(%r12,%rbx,8)
  40084d:	48 83 c3 01          	add    $0x1,%rbx
  400851:	48 39 eb             	cmp    %rbp,%rbx
  400854:	75 ea                	jne    400840 <__libc_csu_init+0x40>
  400856:	48 83 c4 08          	add    $0x8,%rsp
  40085a:	5b                   	pop    %rbx
  40085b:	5d                   	pop    %rbp
  40085c:	41 5c                	pop    %r12
  40085e:	41 5d                	pop    %r13
  400860:	41 5e                	pop    %r14
  400862:	41 5f                	pop    %r15
  400864:	c3                   	retq   
  400865:	90                   	nop
  400866:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  40086d:	00 00 00 

0000000000400870 <__libc_csu_fini>:
  400870:	f3 c3                	repz retq 

Disassembly of section .fini:

0000000000400874 <_fini>:
  400874:	48 83 ec 08          	sub    $0x8,%rsp
  400878:	48 83 c4 08          	add    $0x8,%rsp
  40087c:	c3                   	retq   
